package com.briup.cms.utils;

import java.util.HashMap;
import java.util.Map;


public class UserInfo {

    private static ThreadLocal<Map> threadLocal = new ThreadLocal<>();
    //设置线程信息
    public static void setUserinfo(Map<String,Object> map){
        threadLocal.set(map);
    }
    //获取线程信息
    public static Map<String,Object> getUserInfo(){
        return threadLocal.get();
    }
}
